<!DOCTYPE html>
<html>
<head>@@include('../common/header.html',{"title":"登录日志"})
</head>
<body class="hold-transition skin-blue sidebar-mini">
	<div class="wrapper">
		<div class="content-wrapper ml0">
			<section class="content-header">
				<h1>登录日志</h1>
				<ol class="breadcrumb">
					<li><a href="#"><i class="fa fa-dashboard"></i>系统管理</a></li>
					<li class="active">登录日志</li>
				</ol>
			</section>
			<section class="content container-fluid">
				<div class="box box-primary">
					<div class="box-body">
						<form class="form-inline" way-scope="model.search">
							<div class="form-group">
										<input type="text" class="form-control" placeholder="登录账号" name="loginName" way-data="loginName" maxlength="50">
							</div>
							<div class="form-group">
								<label for="search-name">开始时间</label> <input type="text" 
									class="form-control date search" style="width:100px;" data-date-clear="false" data-default-day="0" placeholder=">=" name="startDate"  way-data="startDate"
									maxlength="100">
							</div>
							<div class="form-group">
								<label for="search-name">截止时间</label> <input type="text" 
									class="form-control date search"  data-date-clear="false" data-default-day="1"  placeholder="<=" name="endDate"  way-data="endDate" style="width:100px;"
									maxlength="100">
							</div>
							<div class="form-group">
								<select class="form-control" name="status" way-data="status">
									<option value="">请选择状态</option>
									<option value="0">成功</option>
									<option value="1">密码错误</option>
									<option value="2">禁用</option>
									<option value="3">锁定24小时</option>
								</select>
							</div>
							<div class="form-group">
							<input type="text" class="form-control" placeholder="IP地址" name="ip" way-data="ip" maxlength="16"  >
							</div>
							<button type="button" class="btn btn-default sf-permission-ctl" id="search" data-sf-permission="sys:loginlog:qry">
								<i class="fa fa-search"></i>
							</button>
							<div class="btn-group pull-right">
								<button type="button" class="btn btn-danger sf-permission-ctl" id="delete" data-sf-permission="sys:loginlog:delete">
									<i class="fa fa-trash-o"></i>
								</button>
							</div>
						</form>
					</div>
				</div>
				<div class="box">
					<div class="box-body">
						<!-- table -->
						<table id="table"></table>
					</div>
				</div>
			</section>
		</div>
	</div>
	<!-- 添加与修改start -->
	<div class="modal fade" id="form-panel" way-scope="model.form">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title" way-data="title" way-html="true"></h4>
				</div>
				<form class="form-horizontal" way-scope="data" id="data-form">
					<div class="modal-body">
							<input type="hidden" way-data="id" name="id">
							<input type="hidden" way-data="userId" name="userId">
								<div class="form-group">
									<label class="col-sm-2 control-label">登录时间<font class="text-red">*</font></label>
									<div class="col-sm-5">
										<input type="text" class="form-control date" way-data="loginTime" 
											name="loginTime" id="loginTime" >
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">IP地址</label>
									<div class="col-sm-5">
										<input type="text" class="form-control" way-data="ip" maxlength="16"
											name="ip"  >
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">登录地区</label>
									<div class="col-sm-5">
										<input type="text" class="form-control" way-data="area" maxlength="20"
											name="area"  >
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">用户代理<font class="text-red">*</font></label>
									<div class="col-sm-5">
										<input type="text" class="form-control" way-data="userAgent" maxlength="1000"
											name="userAgent"  required >
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">设备名称</label>
									<div class="col-sm-5">
										<input type="text" class="form-control" way-data="deviceName" maxlength="100"
											name="deviceName"  >
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">浏览器名称</label>
									<div class="col-sm-5">
										<input type="text" class="form-control" way-data="browserName" maxlength="100"
											name="browserName"  >
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">备注信息</label>
									<div class="col-sm-10">
										<textarea class="form-control" rows="3" way-data="remarks" name="remarks" maxlength="255"   ></textarea>
									</div>
								</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default pull-left"
							data-dismiss="modal">
							<i class="fa fa-times"></i> 取消
						</button>
						<button type="submit" class="btn btn-primary">
							<i class="fa fa-save"></i> 保存
						</button>
					</div>
				</form>
			</div>
		</div>
	</div>
	@@include('../common/common-js.html')
	<script src="/admin/js/sys/loginlog.js"></script>
</body>
</html>